package ua.com.ulitko.client.service;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import ua.com.ulitko.client.entity.Performer;

import java.util.ArrayList;

/**
 * @author suamo ( 24.03.12 23:55 )
 */
@RemoteServiceRelativePath("PerformerService")
public interface PerformerService extends RemoteService {
    public ArrayList<Performer> getPerformerList();

    public void addPerformer(Performer performer);

    public static class Inst {
        private static final PerformerServiceAsync ourInstance = (PerformerServiceAsync) GWT.create(PerformerService.class);

        public static PerformerServiceAsync getInstance() {
            return ourInstance;
        }
    }
}
